package com.chefu.order.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author goodgoodstudy
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_auto_parts_order")
@ApiModel(value="AutoPartsOrder对象", description="")
public class AutoPartsOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "apo_id", type = IdType.ID_WORKER)
    private Long apoId;

    @ApiModelProperty(value = "配件商id")
    private Long ppId;

    @ApiModelProperty(value = "车主id")
    private Long cuid;

    @ApiModelProperty(value = "订单状态(待支付0待发货1待签收2待评价3已完成4退货已完成5)")
    private Integer orderStatus;

    @ApiModelProperty(value = "收货地址id")
    private Long addressId;

    @ApiModelProperty(value = "支付时间")
    private Date payTime;

    @ApiModelProperty(value = "总金额，单位为分")
    private Long totalFee;

    @ApiModelProperty(value = "实付金额。单位:分。如:20007，表示:200元7分")
    private Long actualFee;

    @ApiModelProperty(value = "邮费，单位为分")
    private Long postFee;

    @ApiModelProperty(value = "发货时间")
    private String consignTime;

    @ApiModelProperty(value = "交易完成时间")
    private Date endTime;

    @ApiModelProperty(value = "交易关闭时间")
    private Date closeTime;

    @ApiModelProperty(value = "配送状态（待审核0正在配送1已发货2已收货3已确认4）")
    private String postStatus;

    @ApiModelProperty(value = "优惠活动id，多个以，隔开")
    private String promotionIds;

    @ApiModelProperty(value = "评价时间")
    private Date commentTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "车主名")
    private String userName;

    @ApiModelProperty(value = "配件商家名称")
    private String partProName;

    @ApiModelProperty(value = "用户电话")
    private String userPhone;

    @ApiModelProperty(value = "配件商家电话号")
    private String partProPhone;

}
